#pragma once
#include "Fysics/Renderer/VertexBuffer.h"

namespace Fysics
{
	class OpenGLVertexBuffer : public VertexBuffer
	{
	private:
		unsigned int m_RendererID;
		BufferLayout m_Layout;
	public:
		OpenGLVertexBuffer(const void* vertices, int count, int singleSize);
		virtual ~OpenGLVertexBuffer();

		virtual void Bind() const override;
		virtual void UnBind() const override;

		virtual const BufferLayout& GetLayout() const override { return m_Layout; }
		virtual void SetLayout(const BufferLayout& layout) override { m_Layout = layout; }
	};
}